<?php
/**
 * Created by PhpStorm.
 * User: Frings
 * Date: 2017/4/27
 * Time: 10:14
 */

use yii\helpers\Url;

$web = Url::base();
?>

<script type="text/javascript">


</script>

<div class="form-horizontal" id="manager_info_edit_form">
    <input type="hidden" id="id" name="id" class="form-control"
           value="<?= isset($item['id']) != null ? $item['id'] : '' ?>">

    <div class="form-group" style=" margin-top: 5px">
        <label class="control-label col-lg-2" for="name"><span class="font-color-attention">*</span>名称：</label>
        <div class="col-lg-10">
            <input type="text" id="name" name="name" class="form-control"
                   value="<?= $item != null ? $item['name'] : '' ?>"<?php if ($item != null && $item['id'] == '0') {
                echo 'disabled="disabled"';
            } ?> >
        </div>
    </div>

    <div class="form-group" style=" margin-top: 5px">
        <label class="control-label col-lg-2" for="account"><span class="font-color-attention">*</span>账号：</label>
        <div class="col-lg-10">
            <input type="text" id="account" name="account" class="form-control"
                   value="<?= $item != null ? $item['account'] : '' ?>" <?= $item != null ? "disabled" : '' ?> >
        </div>
    </div>

    <div class="form-group" style=" margin-top: 5px">
        <label class="control-label col-lg-2" for="phone"><span class="font-color-attention">*</span>电话号码：</label>
        <div class="col-lg-10">
            <input type="text" id="phone" name="phone" class="form-control"
                   value="<?= $item != null ? $item['phone'] : '' ?>" <?php if ($item != null && $item['id'] == '0') {
                echo 'disabled="disabled"';
            } ?>>
        </div>
    </div>
    <div class="form-group" style=" margin-top: 5px">
        <label class="control-label col-lg-2" for="remark">备注：</label>
        <div class="col-lg-10">
            <input type="text" id="remark" name="remark" class="form-control"
                   value="<?= $item != null ? $item['remark'] : '' ?>" <?php if ($item != null && $item['id'] == '0') {
                echo 'disabled="disabled"';
            } ?>>
        </div>
    </div>

</div>